<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Avahi-0.8
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;16.&nbsp;Networking Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="netutils.html" title=
          "Networking Utilities">Prev</a>
          <p>
            Networking Utilities
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="bind-utils.html" title=
          "BIND Utilities-9.16.1">Next</a>
          <p>
            BIND Utilities-9.16.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netutils.html" title=
          "Chapter&nbsp;16.&nbsp;Networking Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="avahi" name="avahi"></a>Avahi-0.8
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Avahi
        </h2>
        <p>
          The <span class="application">Avahi</span> package is a system
          which facilitates service discovery on a local network.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz">
                https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 229c6aa30674fc43c202b22c5f8c2be7
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 32 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Avahi Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../general/glib2.html" title=
          "GLib-2.64.1">GLib-2.64.1</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../general/gobject-introspection.html" title=
          "gobject-introspection-1.64.0">gobject-introspection-1.64.0</a>,
          <a class="xref" href="../x/gtk2.html" title=
          "GTK+-2.24.32">GTK+-2.24.32</a>, <a class="xref" href=
          "../x/gtk3.html" title="GTK+-3.24.16">GTK+-3.24.16</a>, <a class=
          "xref" href="../general/libdaemon.html" title=
          "libdaemon-0.14">libdaemon-0.14</a>, <a class="xref" href=
          "../x/libglade.html" title="libglade-2.6.4">libglade-2.6.4</a>, and
          <a class="xref" href="../x/qt5.html" title=
          "Qt-5.14.1">Qt-5.14.1</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/python-modules.html#dbus-python"
          title="D-Bus Python-1.2.16">D-Bus Python-1.2.16</a>, <a class=
          "xref" href="libevent.html" title=
          "libevent-2.1.11">libevent-2.1.11</a>, <a class="xref" href=
          "../general/python-modules.html#pygtk" title=
          "PyGTK-2.24.0">PyGTK-2.24.0</a>, <a class="xref" href=
          "../general/doxygen.html" title="Doxygen-1.8.17">Doxygen-1.8.17</a>
          and <a class="ulink" href=
          "https://sourceforge.net/projects/xmltoman/">xmltoman</a> (for
          generating documentation)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/avahi">http://wiki.linuxfromscratch.org/blfs/wiki/avahi</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Avahi
        </h2>
        <p>
          There should be a dedicated user and group to take control of the
          <span class="command"><strong>avahi-daemon</strong></span> daemon
          after it is started. Issue the following commands as the
          <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">groupadd -fg 84 avahi &amp;&amp;
useradd -c "Avahi Daemon Owner" -d /var/run/avahi-daemon -u 84 \
        -g avahi -s /bin/false avahi</kbd>
</pre>
        <p>
          There should also be a dedicated priviliged access group for
          <span class="application">Avahi</span> clients. Issue the following
          command as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">groupadd -fg 86 netdev</kbd>
</pre>
        <p>
          Install <span class="application">Avahi</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --localstatedir=/var \
            --disable-static     \
            --disable-libevent   \
            --disable-mono       \
            --disable-monodoc    \
            --disable-python     \
            --disable-qt3        \
            --disable-qt4        \
            --enable-core-docs   \
            --with-distro=none   \
            --with-systemdsystemunitdir=no &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <em class="parameter"><code>--disable-libevent</code></em>: This
          parameter disables the use of <a class="xref" href="libevent.html"
          title="libevent-2.1.11">libevent-2.1.11</a>. Remove if you have it
          installed.
        </p>
        <p>
          <em class="parameter"><code>--disable-mono</code></em>: This
          parameter disables the <span class="application">Mono</span>
          bindings.
        </p>
        <p>
          <em class="parameter"><code>--disable-monodoc</code></em>: This
          parameter disables documentation for the <span class=
          "application">Mono</span> bindings.
        </p>
        <p>
          <em class="parameter"><code>--disable-python</code></em>: This
          parameter disables the scripts that depend on <span class=
          "application">Python</span>. It also allows a regular install to
          complete successfully.
        </p>
        <p>
          <em class="parameter"><code>--disable-qt3</code></em>: This
          parameter disables the attempt to build the obsolete <span class=
          "application">Qt3</span> portions of the package.
        </p>
        <p>
          <em class="parameter"><code>--disable-qt4</code></em>: This
          parameter disables the attempt to build the obsolete <span class=
          "application">Qt4Core</span> portions of the package.
        </p>
        <p>
          <em class="parameter"><code>--enable-core-docs</code></em>: This
          parameter enables the building of documentation.
        </p>
        <p>
          <em class="parameter"><code>--with-distro=none</code></em>: There
          is an obsolete boot script in the distribution for LFS. This option
          disables it.
        </p>
        <p>
          <em class=
          "parameter"><code>--with-systemdsystemunitdir=no</code></em>:
          Without it, the daemon fails to start in BLFS, which does not
          support <span class="application">systemd</span>.
        </p>
        <p>
          <code class="option">--disable-dbus</code>: This parameter disables
          the use of <span class="application">D-Bus</span>.
        </p>
        <p>
          <code class="option">--disable-gtk</code>: This parameter disables
          the use of <span class="application">GTK+2</span>.
        </p>
        <p>
          <code class="option">--disable-gtk3</code>: This parameter disables
          the use of <span class="application">GTK+3</span>.
        </p>
        <p>
          <code class="option">--disable-libdaemon</code>: This parameter
          disables the use of <span class="application">libdaemon</span>. If
          you use this option, <span class=
          "command"><strong>avahi-daemon</strong></span> won't be built.
        </p>
        <p>
          <code class="option">--enable-tests</code>: This option enables the
          building of tests and examples.
        </p>
        <p>
          <code class="option">--enable-compat-howl</code>: This option
          enables the compatibility layer for <span class=
          "application">HOWL</span>.
        </p>
        <p>
          <code class="option">--enable-compat-libdns_sd</code>: This option
          enables the compatibility layer for <span class=
          "application">libdns_sd</span>.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring avahi
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="avahi-init" name="avahi-init"></a>
          </h3>
          <h4 class="title">
            <a id="avahi-init" name="avahi-init"></a>Boot Script
          </h4>
          <p>
            To automatically start the <span class=
            "command"><strong>avahi-daemon</strong></span> when the system is
            rebooted, install the <code class=
            "filename">/etc/rc.d/init.d/avahi</code> bootscript from the
            <a class="xref" href="../introduction/bootscripts.html" title=
            "BLFS Boot Scripts">blfs-bootscripts-20191204</a> package.
          </p>
          <pre class="root">
<kbd class="command">make install-avahi</kbd>
</pre>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">avahi-autoipd, avahi-browse,
              avahi-browse-domains, avahi-daemon, avahi-discover-standalone,
              avahi-dnsconfd, avahi-publish, avahi-publish-address,
              avahi-publish-service, avahi-resolve, avahi-resolve-address,
              avahi-resolve-host-name, avahi-set-host-name, bshell, bssh, and
              bvnc</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libavahi-client.so, libavahi-common.so,
              libavahi-core.so, libavahi-glib.so, libavahi-gobject.so,
              libavahi-libevent.so libavahi-ui-gtk3.so, libavahi-qt5,
              libavahi-ui.so, libdns_sd.so, and libhowl.so,</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/avahi/services,
              /usr/include/{avahi-client,avahi-common, avahi-compat-howl,
              avahi-compat-libdns_sd, avahi-core, avahi-glib, avahi-gobject,
              avahi-libevent, avahi-qt5, avahi-ui}, /usr/lib/avahi,
              /usr/share/avahi</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="avahi-autoipd" name=
                    "avahi-autoipd"></a><span class="term"><span class=
                    "command"><strong>avahi-autoipd</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a IPv4LL network address configuration daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-browse" name="avahi-browse"></a><span class=
                    "term"><span class=
                    "command"><strong>avahi-browse</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    browses for mDNS/DNS-SD services using the <span class=
                    "application">Avahi</span> daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-browse-domains" name=
                    "avahi-browse-domains"></a><span class=
                    "term"><span class="command"><strong>avahi-browse-domains</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    browses for mDNS/DNS-SD services using the <span class=
                    "application">Avahi</span> daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-daemon" name="avahi-daemon"></a><span class=
                    "term"><span class=
                    "command"><strong>avahi-daemon</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the <span class="application">Avahi</span> mDNS/DNS-SD
                    daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-discover-standalone" name=
                    "avahi-discover-standalone"></a><span class=
                    "term"><span class=
                    "command"><strong>avahi-discover-standalone</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    browses for mDNS/DNS-SD services using the <span class=
                    "application">Avahi</span> daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-dnsconfd" name=
                    "avahi-dnsconfd"></a><span class="term"><span class=
                    "command"><strong>avahi-dnsconfd</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a Unicast DNS server from mDNS/DNS-SD configuration
                    daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-publish" name=
                    "avahi-publish"></a><span class="term"><span class=
                    "command"><strong>avahi-publish</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    registers a mDNS/DNS-SD service or host name or address
                    mapping using the <span class="application">Avahi</span>
                    daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-publish-address" name=
                    "avahi-publish-address"></a><span class=
                    "term"><span class=
                    "command"><strong>avahi-publish-address</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    registers a mDNS/DNS-SD service or host name or address
                    mapping using the <span class="application">Avahi</span>
                    daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-publish-service" name=
                    "avahi-publish-service"></a><span class=
                    "term"><span class=
                    "command"><strong>avahi-publish-service</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    registers a mDNS/DNS-SD service or host name or address
                    mapping using the <span class="application">Avahi</span>
                    daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-resolve" name=
                    "avahi-resolve"></a><span class="term"><span class=
                    "command"><strong>avahi-resolve</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    resolves one or more mDNS/DNS host name(s) to IP
                    address(es) (and vice versa) using the <span class=
                    "application">Avahi</span> daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-resolve-address" name=
                    "avahi-resolve-address"></a><span class=
                    "term"><span class=
                    "command"><strong>avahi-resolve-address</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    resolves one or more mDNS/DNS host name(s) to IP
                    address(es) (and vice versa) using the <span class=
                    "application">Avahi</span> daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-resolve-host-name" name=
                    "avahi-resolve-host-name"></a><span class=
                    "term"><span class=
                    "command"><strong>avahi-resolve-host-name</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    resolves one or more mDNS/DNS host name(s) to IP
                    address(es) (and vice versa) using the <span class=
                    "application">Avahi</span> daemon.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="avahi-set-host-name" name=
                    "avahi-set-host-name"></a><span class="term"><span class=
                    "command"><strong>avahi-set-host-name</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    changes the mDNS host name.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="bssh" name="bssh"></a><span class=
                    "term"><span class=
                    "command"><strong>bssh</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    browses for SSH servers on the local network.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="bvnc" name="bvnc"></a><span class=
                    "term"><span class=
                    "command"><strong>bvnc</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    browses for VNC servers on the local network.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-23 16:46:15 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="netutils.html" title=
          "Networking Utilities">Prev</a>
          <p>
            Networking Utilities
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="bind-utils.html" title=
          "BIND Utilities-9.16.1">Next</a>
          <p>
            BIND Utilities-9.16.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netutils.html" title=
          "Chapter&nbsp;16.&nbsp;Networking Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
